﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucListTrip.ascx.cs"
    Inherits="TripsLogic.master.uc.ucListTrip" %>
<asp:ListView ID="lstTrips" runat="server">
    <LayoutTemplate>
        <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
    </LayoutTemplate>
    <ItemTemplate>
        <div style="width: 100%">

            <div style="width: 540px; height: 120px">
                <div style="float: left; width: 90px; height: 90px">
                    <img src="<%#Eval("Avatar")%>" style="height: 90px; width: 90px" />
                </div>
                <div style="float: left; height: 25px; width: 445px; margin-left: 5px">
                    <div style="float: left">
                        Driver:<%#Eval("Driver")%>
                    </div>
                    <div style="float: right">
                        <%#Eval("CurrentSlot")%>/<%#Eval("AvaiableSlot")%>
                    </div>
                </div>
                <div style="float: left; height: 35px; width: 445px; margin-left: 5px; margin-top: 10px">
                    <div style="float: left">
                        From <%#Eval("AddressFrom")%>To<%#Eval("AddressTo")%>
                    </div>
                    <div style="float: right">
                        Price: $<%#Eval("Price")%>
                    </div>
                </div>
                <div style="float: left; height: 20px; width: 445px; margin-left: 5px;">
                    Date:
                </div>
            </div>
        </div>
    </ItemTemplate>
</asp:ListView>
